package com.desyang.common.service.impl;

import com.desyang.common.pojo.User;
import com.desyang.common.service.UserService;

public class UserServiceImpl implements UserService {

    @Override
    public User findUserById(Long id) {
        System.out.println("服务端调用用户查找 id=" + id);
        return User.builder()
                .id(id)
                .name("张三")
                .password("123456")
                .build();
    }

    @Override
    public Integer insertUser(User user) {
        System.out.println("服务端调用用户插入 user=" + user);
        return 1;
    }
}
